package com.gm.wholesale.module.kind.bean;

import com.gm.commonlib.views.choiceview.CustomItemChoosenEntity;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class KindBean implements Serializable , CustomItemChoosenEntity {
    @SerializedName("id")
    private long id;
    @SerializedName("name")
    private String name;
    @SerializedName("version")
    private int version;
    @SerializedName("type")
    private int type;
    public KindBean(){

    }
    public KindBean(long id,String name){
        this.id=id;
        this.name=name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String getText() {
        return getName();
    }
}
